package com.mine.education.course.service.impl;

import com.mine.education.common.utils.PageUtils;
import com.mine.education.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mine.education.course.dao.EvaluateDao;
import com.mine.education.course.entity.EvaluateEntity;
import com.mine.education.course.service.EvaluateService;


@Service("evaluateService")
public class EvaluateServiceImpl extends ServiceImpl<EvaluateDao, EvaluateEntity> implements EvaluateService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<EvaluateEntity> page = this.page(
                new Query<EvaluateEntity>().getPage(params),
                new QueryWrapper<EvaluateEntity>()
        );

        return new PageUtils(page);
    }

}